<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stapes例子05</title>
    <script type="text/javascript" src="../lib/stapes-0.8.1/stapes.js"></script>
</head>
<body>
    <h1>你好!!!</h1>

    <script type="text/javascript">

        var Module = Stapes.subclass({
            sayName : function() {
                console.log('i say my name!');
            }
        });

        console.log( 'subclass' in Module );
        console.log( 'get' in new Module()  );

        var Class = Stapes.subclass({
            constructor: function(name){
                this.name = name;
            }
        }, true);

        console.log( 'subclass' in Class );
        console.log( 'get' in new Class() );

    </script>


</body>
</html>